package com.zhang.modules.user.entity.cmd;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import java.io.Serializable;
import java.time.Instant;
import java.util.Date;

/**
 * A DTO for the {@link com.zhang.modules.user.entity.SysUser} entity
 */
@Data
public class PageCmd implements Serializable {

    private final String id;
    private final String createBy;
    private final Date createTime;
    private final String updateBy;
    private final Date updateTime;
    private final Boolean deleted;
    @Column(name = "dept_id")
    private final Long deptId;
    @Column(name = "user_account", nullable = false, length = 30)
    private final String userAccount;
    @Column(name = "nick_name", nullable = false, length = 30)
    private final String nickName;
    @Column(name = "user_type", length = 2)
    private final String userType;
    @Column(name = "email", length = 50)
    private final String email;
    @Column(name = "phonenumber", length = 11)
    private final String phonenumber;
    @Column(name = "sex")
    private final Character sex;
    @Column(name = "status")
    private final Character status;
    @Column(name = "login_ip", length = 128)
    private final String loginIp;
    @Column(name = "login_date")
    private final Instant loginDate;
}